/*
 * @Author: zheguo 3188606474@qq.com
 * @Date: 2024-04-15 23:13:42
 * @LastEditors: zheguo 3188606474@qq.com
 * @LastEditTime: 2024-04-16 19:27:52
 * @FilePath: \ProjectAction\projectOne\myapp\src\store\Navbar_ship.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { defineStore } from 'pinia'
import { ref, reactive } from 'vue'

const useNavbar_ship = defineStore('useNavbar', () => {
    const navbarList = ref([
        {
            name: "小米商城",
            link: "/shop"
        },
        {
            name: "小米官网",
            link: "/XiaomiWebsite"
        },
        {
            name: "小米澎湃OS",
            link: "/HyperOS"
        }
        ,
        {
            name: "小爱开放平台",
            link: "/openPlatform"
        }
        ,
        {
            name: "有品",
            link: "/youpin"
        },
        {
            name: "云服务",
            link: "/yunfuwu"
        }])
    const count = ref(0)
    const isShow = ref(true)
    const change = (value) => {
        isShow.value = value
    }
    return {
        navbarList,
        count,
        change,
        isShow
    }
})

export default useNavbar_ship